package com.suyang.syt.model.dto;

import java.util.ArrayList;
import java.util.List;

import com.suyang.syt.model.WeixinMenu;

@SuppressWarnings("serial")
public class WeixinMenuDTO extends WeixinMenu {

	/** 二级菜单数组，个数应为1~5个 */
	private List<WeixinMenuDTO> sub_button = new ArrayList<WeixinMenuDTO>();
	/** 点击事件返回的消息类型 */
	private String msgReplyType;
	/** 点击事件返回的消息内容 */
	private String msgReplyText;

	public WeixinMenuDTO() {

	}

	public WeixinMenuDTO(WeixinMenu weixinMenu) {
		this.setId(weixinMenu.getId());
		this.setPid(weixinMenu.getPid());
		this.setPtext(weixinMenu.getPtext());
		this.setState(weixinMenu.getState());
		this.setType(weixinMenu.getType());
		this.setName(weixinMenu.getName());
		this.setKey(weixinMenu.getKey());
		this.setUrl(weixinMenu.getUrl());
		this.setMsgReplyId(weixinMenu.getMsgReplyId());
	}

	public List<WeixinMenuDTO> getSub_button() {
		return sub_button;
	}

	public void setSub_button(List<WeixinMenuDTO> sub_button) {
		this.sub_button = sub_button;
	}

	public String getMsgReplyType() {
		return msgReplyType;
	}

	public void setMsgReplyType(String msgReplyType) {
		this.msgReplyType = msgReplyType;
	}

	public String getMsgReplyText() {
		return msgReplyText;
	}

	public void setMsgReplyText(String msgReplyText) {
		this.msgReplyText = msgReplyText;
	}

}
